﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Collections;

namespace DevExpress.MailClient.Win
{
    public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
    {

        private Hashtable HS_SYSTEM_ASSOCIATED_FILES_ICONS;
        public XtraForm1()
        {
            InitializeComponent();

            this.HS_SYSTEM_ASSOCIATED_FILES_ICONS = PRO_DOCS.BLL.WIN.RegisteredFileType.GetFileTypeAndIcon();
            string fileAndParam = (this.HS_SYSTEM_ASSOCIATED_FILES_ICONS[".mp3"]).ToString();
            Icon fILE_ASSOCIATED_ICON = PRO_DOCS.BLL.WIN.RegisteredFileType.ExtractIconFromFile(fileAndParam, false); //RegisteredFileType.ExtractIconFromFile(fileAndParam);

                        ////The icon cannot be zero.
                        if (fILE_ASSOCIATED_ICON == null)
                        {
                            fILE_ASSOCIATED_ICON = Properties.Resources.empty_file;
                        }

                    
                
                //pictureEdit1.Image = fILE_ASSOCIATED_ICON.ToBitmap();


            
        }
    }
}